import request from '../request.js'

const ctxBase = "/base/user"

function addUser(data) {
  return request.post(ctxBase + "/add", data)
}

function updateUser(data) {
  return request.post(ctxBase + "/update", data)
}

function resetpwd(data) {
  return request.post(ctxBase + "/resetpwd", data)
}

function delUser(data) {
  return request.post(ctxBase + "/del/"+data.id)
}

function listUser(data) {
  return request.post(ctxBase + "/list", data)
}

export default {
  addUser, updateUser, resetpwd, delUser, listUser
}
